package com.hzhc.enumBean;

import java.util.stream.Stream;

/**
 * 车上作业
 */
public enum WorkCarEnum {

    FALSE(0,"否"),
    TRUE(1,"是");

    private Integer value;

    private String name;

    WorkCarEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public static Stream<WorkCarEnum> stream() {
        return Stream.of(WorkCarEnum.values());
    }
}